package com.demo.behavioral.command;

public class PresidentialArmyOrder { 
	
	private AirBattleCommand airBattleCommand;
	
	private LandBattleCommand landBattleCommand; 
	
	private NuclearMissileCommand nuclearMissileCommand;
	
	//将全部命令初始化进来，每次新增都修改下构造函数
	public PresidentialArmyOrder(AirBattleCommand airBattleCommand,LandBattleCommand landBattleCommand,
			NuclearMissileCommand nuclearMissileCommand){
		
		this.airBattleCommand = airBattleCommand;
		this.landBattleCommand = landBattleCommand;
		this.nuclearMissileCommand = nuclearMissileCommand;
		
	}
	
	//各种方法
	public void startNuclearWar(){
		nuclearMissileCommand.execute();
	}
	
	public void startAirBattleWar(){
		airBattleCommand.execute();
	}	
	
	//新增需求
	public void startLandBattle(){
		landBattleCommand.execute();
	}	
	

}
